package com.apsfc.service.impl;

import com.apsfc.dao.MenusDao;
import com.apsfc.dao.NoticeDao;
import com.apsfc.po.Notice;
import com.apsfc.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("noticeService")
public class NoticeServiceImpl implements NoticeService {

    @Autowired
    @Qualifier("noticeDao")
    private NoticeDao noticeDao;

    @Override
    public int NoticeAdd(Notice notice) {
        return noticeDao.NoticeAdd(notice);
    }

    @Override
    public int NoticeDelete(int id) {
        return noticeDao.NoticeDelete(id);
    }

    @Override
    public int NoticeUpdate(Notice notice) {
        return noticeDao.NoticeUpdate(notice);
    }

    @Override
    public Notice findNoticeById(int id) {
        return noticeDao.findNoticeById(id);
    }

    @Override
    public List<Notice> getAllNotice() {
        return noticeDao.getAllNotice();
    }

    public Notice getNoticeById(int id) {
        return null;
    }
}
